package polymorphicTask.Pizza;

public class SeafoodPizza extends Pizza {
private String dosing;//配料

    public SeafoodPizza(){}

    public SeafoodPizza(String name, int price, String size, String dosing) {
        super(name, price, size);
        this.dosing = dosing;
    }

    public String getDosing() {
        return dosing;
    }

    public void setDosing(String dosing) {
        this.dosing = dosing;
    }

    public void show(){
        System.out.println("名称："+this.getName()+"\n价格："+this.getPrice()+"元\n大小："+this.getSize()+"寸\n配料："+this.getDosing());
    }
}
